package com.well.rpc.config;

import com.well.rpc.register.ribbon.WdRibbonClientConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.ribbon.RibbonAutoConfiguration;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.cloud.netflix.ribbon.SpringClientFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

@Order(2)
@Configuration
@EnableConfigurationProperties
@ConditionalOnBean({SpringClientFactory.class})
@AutoConfigureAfter({RibbonAutoConfiguration.class})
@RibbonClients(
        defaultConfiguration = {WdRibbonClientConfiguration.class}
)
public class WellRegisterRibbonAutoConfiguration {
}
